package cn.cdyx.ydhl.controller;

import cn.cdyx.common.pojo.TBSCBYEJL;
import cn.cdyx.ydhl.service.SCBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("YDHL/scb")
public class SCBController {
    @Autowired
    private SCBService scbService;

    /**
     * 三测表婴儿记录
     * @param
     * @return
     */
    @GetMapping ("{id}")
    //public String saveSCBYE(@RequestBody List<TBSCBYEJL> tbscbyejlList){
    public String saveSCBYE(@PathVariable("id") Long orderId){
        TBSCBYEJL tbscbyejl = new TBSCBYEJL();
        tbscbyejl.setCxsebh("aaaaa");
        String s = scbService.saveSCBYE(tbscbyejl);
        return s;
    }
}
